<!--
#    Copyright 2009, 2011 Tri-County Electric Cooperative, St. Matthews, South Carolina
#    This file is part of COOPGIS.
#    COOPGIS is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#    COOPGIS is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#    You should have received a copy of the GNU General Public License
#    along with COOPGIS.  If not, see <http://www.gnu.org/licenses/>.
-->

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <style type="text/css">
        #map {
            width: 800px;
            height: 400px;
            border: 1px solid black;
        }
    </style>
 {{ OpenLayersJavaScriptHeading|safe }}


    <title>COOPGIS Ground Rod Test Editor</title>
  </head>
  <body onload="init()">
<b>{{LoginStatus}}</b>   &nbsp&nbsp&nbsp&nbsp <small><a href="/coopgis/">Main Menu</a></small>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<small><a href="/coopgis/groundrodtest/report/">Ground Rod Test Report</a></small><br>
<br>


<div id="map">    {{ OpenLayersJavaScript|safe }}
</div>
<br>




<form method="post" action="">







<table> 
        <tr><td>Map {{form.Map}} &nbsp&nbsp&nbsp&nbsp</td><td><input type="submit"/></td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<td></td><td>Update</td>
                                                        <td><small>Company</small></td>
                                                        <td><small>Date</small></td>
                                                        <td><small>Ground Rod Number</small></td>
							<td><small>ResistanceReading</small></td>
							<td><small>Work Order Number</small></td>
                                                        <td><small>Description</small></td>
							<td><small>Setup Indicator</small></td>
							<td><small>Inspection Person Name<small></td>
							<td><small>Substation Name</small></td>
                                                        <td><small>Delete</small></td><td><small>id</small></td></tr>  
        <tr><td>GPS Select{{form.SelectGPSIndicator}}</td><td>{{GPSStatus}}&nbsp</td><td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp </td>
                <td>{{form.UpdateIndicator0}}</td>
		<td>{{form.GroundRodTestCompany0}}</td>
                <td>{{form.GroundRodTestDate0}}</td>
		<td>{{form.GroundRodTestGroundRodNumber0}}</td>
                <td>{{form.GroundRodTestResistanceReading0}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber0}}</td>
       	 	<td>{{form.GroundRodTestDescription0}}</td>
                <td>{{form.GroundRodTestSetupIndicator0}}</td>
		<td>{{form.GroundRodTestInspectionPersonName0}}</td>
                <td>{{form.GroundRodTestSubstationName0}}</td>
                <td>{{form.DeleteIndicator0}}</td><td>{{form.GroundRodTestid0}}</td></tr>
	<tr><td>Station{{form.SelectStationid}}</td><td>Tag{{form.SelectStationTagNumber}}</td></tr>
</table>

Current Pole:  {{CurrentPoleText}} <br>

<table border="1">

        <tr valign="top">      
                                                        <td><small>Update<small></td>
                                                        <td><small>Company</small></td>
                                                        <td><small>Date</small></td>
                                                        <td><small>Ground Rod Number</small></td>
							<td><small>ResistanceReading</small></td>
							<td><small>Work Order Number</small></td>
                                                        <td><small>Description</small></td>
							<td><small>Setup Indicator</small></td>
							<td><small>Inspection Person Name<small></td>
							<td><small>Substation Name</small></td>
                                                        <td><small>Delete</small></td><td><small>id</small></td></tr>


        <tr>
                <td>{{form.UpdateIndicator1}}</td>
		<td>{{form.GroundRodTestCompany1}}</td>
		<td>{{form.GroundRodTestDate1}}</td>
		<td>{{form.GroundRodTestGroundRodNumber1}}</td>
                <td>{{form.GroundRodTestResistanceReading1}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber1}}</td>
       	 	<td>{{form.GroundRodTestDescription1}}</td>
                <td>{{form.GroundRodTestSetupIndicator1}}</td>
		<td>{{form.GroundRodTestInspectionPersonName1}}</td>
                <td>{{form.GroundRodTestSubstationName1}}</td>
                <td>{{form.DeleteIndicator1}}</td><td>{{form.GroundRodTestid1}}</td></tr>


        <tr>    <td>{{form.UpdateIndicator2}}</td>
		<td>{{form.GroundRodTestCompany2}}</td>
		<td>{{form.GroundRodTestDate2}}</td>
		<td>{{form.GroundRodTestGroundRodNumber2}}</td>
                <td>{{form.GroundRodTestResistanceReading2}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber2}}</td>
       	 	<td>{{form.GroundRodTestDescription2}}</td>
                <td>{{form.GroundRodTestSetupIndicator2}}</td>
		<td>{{form.GroundRodTestInspectionPersonName2}}</td>
                <td>{{form.GroundRodTestSubstationName2}}</td>
                <td>{{form.DeleteIndicator2}}</td><td>{{form.GroundRodTestid2}}</td></tr>


        <tr>    <td>{{form.UpdateIndicator3}}</td>
		<td>{{form.GroundRodTestCompany3}}</td>
		<td>{{form.GroundRodTestDate3}}</td>
		<td>{{form.GroundRodTestGroundRodNumber3}}</td>
                <td>{{form.GroundRodTestResistanceReading3}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber3}}</td>
       	 	<td>{{form.GroundRodTestDescription3}}</td>
                <td>{{form.GroundRodTestSetupIndicator3}}</td>
		<td>{{form.GroundRodTestInspectionPersonName3}}</td>
                <td>{{form.GroundRodTestSubstationName3}}</td>
                <td>{{form.DeleteIndicator3}}</td><td>{{form.GroundRodTestid3}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator4}}</td>
		<td>{{form.GroundRodTestCompany4}}</td>
		<td>{{form.GroundRodTestDate4}}</td>
		<td>{{form.GroundRodTestGroundRodNumber4}}</td>
                <td>{{form.GroundRodTestResistanceReading4}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber4}}</td>
       	 	<td>{{form.GroundRodTestDescription4}}</td>
                <td>{{form.GroundRodTestSetupIndicator4}}</td>
		<td>{{form.GroundRodTestInspectionPersonName4}}</td>
                <td>{{form.GroundRodTestSubstationName4}}</td>
                <td>{{form.DeleteIndicator4}}</td><td>{{form.GroundRodTestid4}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator5}}</td>
		<td>{{form.GroundRodTestCompany5}}</td>
		<td>{{form.GroundRodTestDate5}}</td>
		<td>{{form.GroundRodTestGroundRodNumber5}}</td>
                <td>{{form.GroundRodTestResistanceReading5}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber5}}</td>
       	 	<td>{{form.GroundRodTestDescription5}}</td>
                <td>{{form.GroundRodTestSetupIndicator5}}</td>
		<td>{{form.GroundRodTestInspectionPersonName5}}</td>
                <td>{{form.GroundRodTestSubstationName5}}</td>
                <td>{{form.DeleteIndicator5}}</td><td>{{form.GroundRodTestid5}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator6}}</td>
		<td>{{form.GroundRodTestCompany6}}</td>
		<td>{{form.GroundRodTestDate6}}</td>
		<td>{{form.GroundRodTestGroundRodNumber6}}</td>
                <td>{{form.GroundRodTestResistanceReading6}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber6}}</td>
       	 	<td>{{form.GroundRodTestDescription6}}</td>
                <td>{{form.GroundRodTestSetupIndicator6}}</td>
		<td>{{form.GroundRodTestInspectionPersonName6}}</td>
                <td>{{form.GroundRodTestSubstationName6}}</td>
                <td>{{form.DeleteIndicator6}}</td><td>{{form.GroundRodTestid6}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator7}}</td>
		<td>{{form.GroundRodTestCompany7}}</td>
		<td>{{form.GroundRodTestDate7}}</td>
		<td>{{form.GroundRodTestGroundRodNumber7}}</td>
                <td>{{form.GroundRodTestResistanceReading7}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber7}}</td>
       	 	<td>{{form.GroundRodTestDescription7}}</td>
                <td>{{form.GroundRodTestSetupIndicator7}}</td>
		<td>{{form.GroundRodTestInspectionPersonName7}}</td>
                <td>{{form.GroundRodTestSubstationName7}}</td>
                <td>{{form.DeleteIndicator7}}</td><td>{{form.GroundRodTestid7}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator8}}</td>
		<td>{{form.GroundRodTestCompany8}}</td>
		<td>{{form.GroundRodTestDate8}}</td>
		<td>{{form.GroundRodTestGroundRodNumber8}}</td>
                <td>{{form.GroundRodTestResistanceReading8}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber8}}</td>
       	 	<td>{{form.GroundRodTestDescription8}}</td>
                <td>{{form.GroundRodTestSetupIndicator8}}</td>
		<td>{{form.GroundRodTestInspectionPersonName8}}</td>
                <td>{{form.GroundRodTestSubstationName8}}</td>
                <td>{{form.DeleteIndicator8}}</td><td>{{form.GroundRodTestid8}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator9}}</td>
		<td>{{form.GroundRodTestCompany9}}</td>
		<td>{{form.GroundRodTestDate9}}</td>
		<td>{{form.GroundRodTestGroundRodNumber9}}</td>
                <td>{{form.GroundRodTestResistanceReading9}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber9}}</td>
       	 	<td>{{form.GroundRodTestDescription9}}</td>
                <td>{{form.GroundRodTestSetupIndicator9}}</td>
		<td>{{form.GroundRodTestInspectionPersonName9}}</td>
                <td>{{form.GroundRodTestSubstationName9}}</td>
                <td>{{form.DeleteIndicator9}}</td><td>{{form.GroundRodTestid9}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator10}}</td>
		<td>{{form.GroundRodTestCompany10}}</td>
		<td>{{form.GroundRodTestDate10}}</td>
		<td>{{form.GroundRodTestGroundRodNumber10}}</td>
                <td>{{form.GroundRodTestResistanceReading10}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber10}}</td>
       	 	<td>{{form.GroundRodTestDescription10}}</td>
                <td>{{form.GroundRodTestSetupIndicator10}}</td>
		<td>{{form.GroundRodTestInspectionPersonName10}}</td>
                <td>{{form.GroundRodTestSubstationName10}}</td>
                <td>{{form.DeleteIndicator10}}</td><td>{{form.GroundRodTestid10}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator11}}</td>
		<td>{{form.GroundRodTestCompany11}}</td>
		<td>{{form.GroundRodTestDate11}}</td>
		<td>{{form.GroundRodTestGroundRodNumber11}}</td>
                <td>{{form.GroundRodTestResistanceReading11}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber11}}</td>
       	 	<td>{{form.GroundRodTestDescription11}}</td>
                <td>{{form.GroundRodTestSetupIndicator11}}</td>
		<td>{{form.GroundRodTestInspectionPersonName11}}</td>
                <td>{{form.GroundRodTestSubstationName11}}</td>
                <td>{{form.DeleteIndicator11}}</td><td>{{form.GroundRodTestid11}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator12}}</td>
		<td>{{form.GroundRodTestCompany12}}</td>
		<td>{{form.GroundRodTestDate12}}</td>
		<td>{{form.GroundRodTestGroundRodNumber12}}</td>
                <td>{{form.GroundRodTestResistanceReading12}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber12}}</td>
       	 	<td>{{form.GroundRodTestDescription12}}</td>
                <td>{{form.GroundRodTestSetupIndicator12}}</td>
		<td>{{form.GroundRodTestInspectionPersonName12}}</td>
                <td>{{form.GroundRodTestSubstationName12}}</td>
                <td>{{form.DeleteIndicator12}}</td><td>{{form.GroundRodTestid12}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator13}}</td>
		<td>{{form.GroundRodTestCompany13}}</td>
		<td>{{form.GroundRodTestDate13}}</td>
		<td>{{form.GroundRodTestGroundRodNumber13}}</td>
                <td>{{form.GroundRodTestResistanceReading13}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber13}}</td>
       	 	<td>{{form.GroundRodTestDescription13}}</td>
                <td>{{form.GroundRodTestSetupIndicator13}}</td>
		<td>{{form.GroundRodTestInspectionPersonName13}}</td>
                <td>{{form.GroundRodTestSubstationName13}}</td>
                <td>{{form.DeleteIndicator13}}</td><td>{{form.GroundRodTestid13}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator14}}</td>
		<td>{{form.GroundRodTestCompany14}}</td>
		<td>{{form.GroundRodTestDate14}}</td>
		<td>{{form.GroundRodTestGroundRodNumber14}}</td>
                <td>{{form.GroundRodTestResistanceReading14}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber14}}</td>
       	 	<td>{{form.GroundRodTestDescription14}}</td>
                <td>{{form.GroundRodTestSetupIndicator14}}</td>
		<td>{{form.GroundRodTestInspectionPersonName14}}</td>
                <td>{{form.GroundRodTestSubstationName14}}</td>
                <td>{{form.DeleteIndicator14}}</td><td>{{form.GroundRodTestid14}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator15}}</td>
		<td>{{form.GroundRodTestCompany15}}</td>
		<td>{{form.GroundRodTestDate15}}</td>
		<td>{{form.GroundRodTestGroundRodNumber15}}</td>
                <td>{{form.GroundRodTestResistanceReading15}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber15}}</td>
       	 	<td>{{form.GroundRodTestDescription15}}</td>
                <td>{{form.GroundRodTestSetupIndicator15}}</td>
		<td>{{form.GroundRodTestInspectionPersonName15}}</td>
                <td>{{form.GroundRodTestSubstationName15}}</td>
                <td>{{form.DeleteIndicator15}}</td><td>{{form.GroundRodTestid15}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator16}}</td>
		<td>{{form.GroundRodTestCompany16}}</td>
		<td>{{form.GroundRodTestDate16}}</td>
		<td>{{form.GroundRodTestGroundRodNumber16}}</td>
                <td>{{form.GroundRodTestResistanceReading16}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber16}}</td>
       	 	<td>{{form.GroundRodTestDescription16}}</td>
                <td>{{form.GroundRodTestSetupIndicator16}}</td>
		<td>{{form.GroundRodTestInspectionPersonName16}}</td>
                <td>{{form.GroundRodTestSubstationName16}}</td>
                <td>{{form.DeleteIndicator16}}</td><td>{{form.GroundRodTestid16}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator17}}</td>
		<td>{{form.GroundRodTestCompany17}}</td>
		<td>{{form.GroundRodTestDate17}}</td>
		<td>{{form.GroundRodTestGroundRodNumber17}}</td>
                <td>{{form.GroundRodTestResistanceReading17}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber17}}</td>
       	 	<td>{{form.GroundRodTestDescription17}}</td>
                <td>{{form.GroundRodTestSetupIndicator17}}</td>
		<td>{{form.GroundRodTestInspectionPersonName17}}</td>
                <td>{{form.GroundRodTestSubstationName17}}</td>
                <td>{{form.DeleteIndicator17}}</td><td>{{form.GroundRodTestid17}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator18}}</td>
		<td>{{form.GroundRodTestCompany18}}</td>
		<td>{{form.GroundRodTestDate18}}</td>
		<td>{{form.GroundRodTestGroundRodNumber18}}</td>
                <td>{{form.GroundRodTestResistanceReading18}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber18}}</td>
       	 	<td>{{form.GroundRodTestDescription18}}</td>
                <td>{{form.GroundRodTestSetupIndicator18}}</td>
		<td>{{form.GroundRodTestInspectionPersonName18}}</td>
                <td>{{form.GroundRodTestSubstationName18}}</td>
                <td>{{form.DeleteIndicator18}}</td><td>{{form.GroundRodTestid18}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator19}}</td>
		<td>{{form.GroundRodTestCompany19}}</td>
		<td>{{form.GroundRodTestDate19}}</td>
		<td>{{form.GroundRodTestGroundRodNumber19}}</td>
                <td>{{form.GroundRodTestResistanceReading19}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber19}}</td>
       	 	<td>{{form.GroundRodTestDescription19}}</td>
                <td>{{form.GroundRodTestSetupIndicator19}}</td>
		<td>{{form.GroundRodTestInspectionPersonName19}}</td>
                <td>{{form.GroundRodTestSubstationName19}}</td>
                <td>{{form.DeleteIndicator19}}</td><td>{{form.GroundRodTestid19}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator20}}</td>
		<td>{{form.GroundRodTestCompany20}}</td>
		<td>{{form.GroundRodTestDate20}}</td>
		<td>{{form.GroundRodTestGroundRodNumber20}}</td>
                <td>{{form.GroundRodTestResistanceReading20}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber20}}</td>
       	 	<td>{{form.GroundRodTestDescription20}}</td>
                <td>{{form.GroundRodTestSetupIndicator20}}</td>
		<td>{{form.GroundRodTestInspectionPersonName20}}</td>
                <td>{{form.GroundRodTestSubstationName20}}</td>
                <td>{{form.DeleteIndicator20}}</td><td>{{form.GroundRodTestid20}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator21}}</td>
		<td>{{form.GroundRodTestCompany21}}</td>
		<td>{{form.GroundRodTestDate21}}</td>
		<td>{{form.GroundRodTestGroundRodNumber21}}</td>
                <td>{{form.GroundRodTestResistanceReading21}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber21}}</td>
       	 	<td>{{form.GroundRodTestDescription21}}</td>
                <td>{{form.GroundRodTestSetupIndicator21}}</td>
		<td>{{form.GroundRodTestInspectionPersonName21}}</td>
                <td>{{form.GroundRodTestSubstationName21}}</td>
                <td>{{form.DeleteIndicator21}}</td><td>{{form.GroundRodTestid21}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator22}}</td>
		<td>{{form.GroundRodTestCompany22}}</td>
		<td>{{form.GroundRodTestDate22}}</td>
		<td>{{form.GroundRodTestGroundRodNumber22}}</td>
                <td>{{form.GroundRodTestResistanceReading22}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber22}}</td>
       	 	<td>{{form.GroundRodTestDescription22}}</td>
                <td>{{form.GroundRodTestSetupIndicator22}}</td>
		<td>{{form.GroundRodTestInspectionPersonName22}}</td>
                <td>{{form.GroundRodTestSubstationName22}}</td>
                <td>{{form.DeleteIndicator22}}</td><td>{{form.GroundRodTestid22}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator23}}</td>
		<td>{{form.GroundRodTestCompany23}}</td>
		<td>{{form.GroundRodTestDate23}}</td>
		<td>{{form.GroundRodTestGroundRodNumber23}}</td>
                <td>{{form.GroundRodTestResistanceReading23}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber23}}</td>
       	 	<td>{{form.GroundRodTestDescription23}}</td>
                <td>{{form.GroundRodTestSetupIndicator23}}</td>
		<td>{{form.GroundRodTestInspectionPersonName23}}</td>
                <td>{{form.GroundRodTestSubstationName23}}</td>
                <td>{{form.DeleteIndicator23}}</td><td>{{form.GroundRodTestid23}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator24}}</td>
		<td>{{form.GroundRodTestCompany24}}</td>
		<td>{{form.GroundRodTestDate24}}</td>
		<td>{{form.GroundRodTestGroundRodNumber24}}</td>
                <td>{{form.GroundRodTestResistanceReading24}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber24}}</td>
       	 	<td>{{form.GroundRodTestDescription24}}</td>
                <td>{{form.GroundRodTestSetupIndicator24}}</td>
		<td>{{form.GroundRodTestInspectionPersonName24}}</td>
                <td>{{form.GroundRodTestSubstationName24}}</td>
                <td>{{form.DeleteIndicator24}}</td><td>{{form.GroundRodTestid24}}</td></tr>

        <tr>    <td>{{form.UpdateIndicator25}}</td>
		<td>{{form.GroundRodTestCompany25}}</td>
		<td>{{form.GroundRodTestDate25}}</td>
		<td>{{form.GroundRodTestGroundRodNumber25}}</td>
                <td>{{form.GroundRodTestResistanceReading25}}</td>
		<td>{{form.GroundRodTestWorkOrderNumber25}}</td>
       	 	<td>{{form.GroundRodTestDescription25}}</td>
                <td>{{form.GroundRodTestSetupIndicator25}}</td>
		<td>{{form.GroundRodTestInspectionPersonName25}}</td>
                <td>{{form.GroundRodTestSubstationName25}}</td>
                <td>{{form.DeleteIndicator25}}</td><td>{{form.GroundRodTestid25}}</td></tr>





</table>
</form>
<br>
</ul>
  </body>
</html>
